﻿<%@ Page Language="C#"  EnableEventValidation="false" AutoEventWireup="true" CodeBehind="ChangeList.aspx.cs" Inherits="UI.ModSalesman.ChangeList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
   <title>促销员职位变动列表</title>
     <link rel="stylesheet" type="text/css" href="../Styles/BaseStyle.css" />
       <script type="text/javascript" src="../JS/jsFunction.js"></script>
    <script src="../JS/calendar.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
 <div id="pagetop" class="pagetop">
        <div class="pagetopleft">
            促销员变动表</div>
        <div class="pagetopright">
            工号<asp:TextBox ID="txtSerWord" runat="server" CssClass="InputCss" Width="75px"></asp:TextBox>
            日期<asp:TextBox ID="txtBtime" runat="server" CssClass="InputCss" Width="75px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" ></asp:TextBox>
            至<asp:TextBox ID="txtEtime" runat="server" CssClass="InputCss" Width="75px"  maxlength="10" onclick="setday(this,false)" onkeypress="return validateKey(this,false, getkeyCode(event));" style="ime-mode:Disabled;" ></asp:TextBox>
            <asp:Button ID="btnEmSearch" runat="server" Text="查询" OnClick="btnEmSearch_Click"
                CssClass="ButtonCss" TabIndex="1" />
            &nbsp;<asp:Button ID="btnClear" runat="server" Text="清空" 
                OnClick="btnClear_Click" CssClass="ButtonCss" TabIndex="2" />
            &nbsp;<asp:Button ID="btnPrint" runat="server" Text="打印" CssClass="ButtonCss" 
                OnClick="btnPrint_Click" TabIndex="3" />
            &nbsp;<asp:Button ID="btnExcel" runat="server" Text="导出" CssClass="ButtonCss" 
                OnClick="btnExcel_Click" TabIndex="4" />
            &nbsp;<asp:Button ID="btnAdd" runat="server" Text="增加" CssClass="ButtonCss" 
                OnClick="btnAdd_Click" TabIndex="5" />
            &nbsp;
        </div>
    </div>
    <asp:GridView ID="gvList" runat="server" DataKeyNames="ChangeID" Width="100%" AutoGenerateColumns="False"
        BackColor="White" BorderColor="#E7E7FF" BorderStyle="None" BorderWidth="1px"
        CellPadding="3" GridLines="Horizontal" 
        OnRowDataBound="gvList_RowDataBound">
        <Columns>
            <asp:BoundField DataField="ChangeID" HeaderText="ChangeID" SortExpression="LeaveID">
            </asp:BoundField>
            <asp:TemplateField HeaderText="促销员工号" SortExpression="EmpCode">
                <ItemTemplate>
                    <a href="javascript:ShowLink('ChangeAdd.aspx?ChangeID=<%# Eval("ChangeID")%>',800,550)">
                        <%# Eval("EmpCode")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="促销员姓名" SortExpression="EmpName">
                <ItemTemplate>
                    <a href="javascript:ShowLink('ChangeAdd.aspx?ChangeID=<%# Eval("ChangeID")%>',800,550)">
                        <%# Eval("EmpName")%></a>
                </ItemTemplate>
                <ItemStyle Width="80px" />
            </asp:TemplateField>
             <asp:BoundField DataField="TypeName" HeaderText="类型" SortExpression="TypeName">
                <ItemStyle Width="80px" />
            </asp:BoundField>
            <asp:BoundField DataField="StateName" HeaderText="状态" SortExpression="StateName">
                <ItemStyle Width="70px" />
            </asp:BoundField>
            <asp:BoundField DataField="OldDeptName" HeaderText="原部门" SortExpression="OldDeptName">
                <ItemStyle Width="130px" />
            </asp:BoundField>            
           
               <asp:BoundField DataField="NewDeptName" HeaderText="新部门" SortExpression="NewDeptName">
                <ItemStyle Width="130px" />
            </asp:BoundField>  
            <asp:BoundField DataField="ChangeTime" HeaderText="执行时间" DataFormatString="{0:d}" SortExpression="ChangeTime">
                <ItemStyle Width="80px" />
            </asp:BoundField>           
            <asp:BoundField DataField="Memo" HeaderText="备注" SortExpression="Memo">
                
            </asp:BoundField>
        </Columns>
        <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
        <RowStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" />
        <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="#F7F7F7" />
        <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#F7F7F7" />
        <AlternatingRowStyle BackColor="#F7F7F7" />
    </asp:GridView>
        
    </div><div id="divAmount" class="amountLine">
        共有记录数:<asp:Label ID="lbAmount" runat="server"></asp:Label>
    </form>
</body>
</html>
